package com.sc.nft.entity.dto;

import com.sc.nft.enums.ApplicationRequirementEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ApplicationRequirementAddDTO {

    @ApiModelProperty(value = "1:社区工作室 2:城市服务中心")
    @NotNull(message = "服务类型不能为空")
    private Integer serveType;

    @ApiModelProperty(value = "有效条件,比如5000 1000")
    @NotNull(message = "有效条件不能为空")
    private String value;

    @ApiModelProperty(value = "    TEAM_ACTIVE_USER(1,\"团队有效用户\"),\n" +
            "    TEAM_NURTURING_COMMUNITY(2,\"团队培育社区\"),\n" +
            "    TEAM_SALES(3,\"团队销售额\"),\n" +
            "    NUMBER_OF_VALID_DIRECT_PUSH_USERS(4,\"有效直推用户数\")")
    @NotNull(message = "条件类型不能为空")
    private ApplicationRequirementEnum type;

    @ApiModelProperty(value = "组合方式  只有and和or")
    @NotBlank(message = "组合方式不能为空")
    private String compoundMode;

    @ApiModelProperty(value = "判定条件  > <  >=  <= =五种.不在支持其他类型 不允许携带空格回传")
    @NotBlank(message = "判定条件不能为空")
    private String judgingCriteria;

}
